<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="__LIB__/html5shiv.js"></script>
<script type="text/javascript" src="__LIB__/respond.min.js"></script>
<![endif]-->
<link href="__HUI__/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="__HUIADMIN__/css/H-ui.login.css" rel="stylesheet" type="text/css" />
<link href="__HUIADMIN__/css/style.css" rel="stylesheet" type="text/css" />
<link href="__LIB__/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" type="text/css" />
<style>
.index-banner {
    padding: 40px 0;
    color: #fff;
    text-align: center;
	z-index: 2; 
    background: url(__HUIADMIN__/images/admin-login-bg.jpg) no-repeat center 0;
    background-size: 100% auto;
}
</style>
<!--[if IE 6]>
<script type="text/javascript" src="__LIB__/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<script type="text/javascript" src="__LIB__/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="__HUI__/js/H-ui.min.js"></script>
<script type="text/javascript" src="__LIB__/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="__LIB__/layer/2.4/layer.js"></script>
<script type="text/javascript" src="__HUIADMIN__/common.js"></script>
<title>{$Think.config.sys.name}</title>
<meta name="keywords" content="{$Think.config.company.c_key}">
<meta name="description" content="{$Think.config.company.c_key}">
</head>
<body>
<article class="index-banner">
<div class="header" style='background: #ffffff38 no-repeat 0 center;'><p class="l ml-30"><img style='width: 280px;' src='logo.png'></p></div>
<div class="loginWraper">
  <div id="loginform" class="loginBox">
    <form id='form' class="form form-horizontal" action="{:Url('checkLogin')}" method="post">
      <div class="row cl">
        <label class="form-label col-xs-3"><i class="Hui-iconfont" style='color: azure;'>&#xe60d;</i></label>
        <div class="formControls col-xs-8">
          <input  name="account" type="text" placeholder="账户" datatype="*" nullmsg="请输入账号" class="input-text size-L">
        </div>
      </div>
      <div class="row cl">
        <label class="form-label col-xs-3"><i class="Hui-iconfont" style='color: azure;'>&#xe60e;</i></label>
        <div class="formControls col-xs-8">
          <input  name="password" type="password" placeholder="密码" datatype="*" nullmsg="请输入密码" class="input-text size-L">
        </div>
      </div>
      <div class="row cl">
        <div class="formControls col-xs-8 col-xs-offset-3">
          <input name='captcha' class="input-text size-L" datatype="*" nullmsg="请输入验证码" type="text" placeholder="验证码" onblur="if(this.value==''){this.value='验证码:'}" onclick="if(this.value=='验证码:'){this.value='';}" value="验证码:" style="width:220px;">
          <img id="captcha" src="{:captcha_src()}" alt="验证码" title="点击刷新验证码" style="cursor:pointer;width: 140px;height:41px"> </div>
      </div>
     
      <div class="row cl">
        <div class="formControls col-xs-8 col-xs-offset-3">
          <input name="" type="submit" class="btn btn-success radius size-L" value="&nbsp;登&nbsp;&nbsp;&nbsp;&nbsp;录&nbsp;">
          <input name="" type="reset" class="btn btn-default radius size-L" value="&nbsp;取&nbsp;&nbsp;&nbsp;&nbsp;消&nbsp;">
        </div>
      </div>
    </form>
  </div>
</div>
<div class="footer" style='background: #ffffff38 no-repeat 0 center;'>Copyright {$Think.config.sys.name} by {$Think.config.sys.sysname} {$Think.config.sys.sysv}</div>
</article>
<script>
$("#captcha").click(function () {
            $(this).attr("src","{:captcha_src()}?t="+new Date().getTime());
    });
$(function () {
        $("#form").Validform({
            tiptype:2,
            ajaxPost:true,
            showAllError:true,
            callback:function(ret){
                if (ret.code!=0){
                    if (ret.msg == '验证码错误!'){
                        $("#captcha").click();
                        $("[name='captcha']").val('');
                        layer.msg(ret.msg);
                    } else {
                        layer.alert(ret.msg);
                    }
                } else {
                    layer.msg("登录成功！");
                    location.href = '/';
                }
            }
        });
    })
</script>
</body>
</html>